exports.search_organization_bargain_list = function (req, res) {

    //获取restful参数
    var restfulParams = req.routeInfo.restfulParams;

    //最终结果
    var resultData = {};


    //任务流创建
    async.waterfall([

            //1.查询机构课程
            function (cb) {

                R.SEND_HTTP(
                    req,
                    {
                        url: CORE_APIConfig.coreAPI.search_organization_bargain_list + "/oa_oid/" + restfulParams.oid,
                        method: 'GET',

                    },
                    function (err, data) {
                        // //console.log(data);
                        //判断是否有错误信息
                        if (err) {
                            return cb(err, data);
                        }

                        resultData.organizationBargainList = data.data;
                        cb();
                    }
                );

            },






        ], function (err, result) {

            //返回最终拼接结果
            RES.response(res, true, resultData);

        }
    );

};
